<!DOCTYPE html>
<html lang="en">
  <head>
    <title>Enums  Reference</title>
    <link rel="stylesheet" type="text/css" href="css/jazzy.css" />
    <link rel="stylesheet" type="text/css" href="css/highlight.css" />
    <meta charset='utf-8'>
    <script src="js/jquery.min.js" defer></script>
    <script src="js/jazzy.js" defer></script>
    
  </head>
  <body>
    <a title="Enums  Reference"></a>
    <header>
      <div class="content-wrapper">
        <p><a href="index.html">Presentr Docs</a> (38% documented)</p>
      </div>
    </header>
    <div class="content-wrapper">
      <p id="breadcrumbs">
        <a href="index.html">Presentr Reference</a>
        <img id="carat" src="img/carat.png" />
        Enums  Reference
      </p>
    </div>
    <div class="content-wrapper">
      <nav class="sidebar">
        <ul class="nav-groups">
          <li class="nav-group-name">
            <a href="Classes.html">Classes</a>
            <ul class="nav-group-tasks">
              <li class="nav-group-task">
                <a href="Classes/AlertAction.html">AlertAction</a>
              </li>
              <li class="nav-group-task">
                <a href="Classes/AlertViewController.html">AlertViewController</a>
              </li>
              <li class="nav-group-task">
                <a href="Classes/Presentr.html">Presentr</a>
              </li>
            </ul>
          </li>
          <li class="nav-group-name">
            <a href="Enums.html">Enums</a>
            <ul class="nav-group-tasks">
              <li class="nav-group-task">
                <a href="Enums/AlertActionStyle.html">AlertActionStyle</a>
              </li>
              <li class="nav-group-task">
                <a href="Enums/ModalCenterPosition.html">ModalCenterPosition</a>
              </li>
              <li class="nav-group-task">
                <a href="Enums/ModalSize.html">ModalSize</a>
              </li>
              <li class="nav-group-task">
                <a href="Enums/PresentationType.html">PresentationType</a>
              </li>
              <li class="nav-group-task">
                <a href="Enums/TransitionType.html">TransitionType</a>
              </li>
            </ul>
          </li>
          <li class="nav-group-name">
            <a href="Extensions.html">Extensions</a>
            <ul class="nav-group-tasks">
              <li class="nav-group-task">
                <a href="Extensions.html#/s:C8Presentr18PresentrController">PresentrController</a>
              </li>
              <li class="nav-group-task">
                <a href="Extensions/UIViewController.html">UIViewController</a>
              </li>
            </ul>
          </li>
          <li class="nav-group-name">
            <a href="Functions.html">Functions</a>
            <ul class="nav-group-tasks">
              <li class="nav-group-task">
                <a href="Functions.html#/s:ZF8Presentroi2eeFTOS_16PresentationTypeS0__Sb">==(_:_:)</a>
              </li>
              <li class="nav-group-task">
                <a href="Functions.html#/s:ZF8Presentroi2eeFTOS_9ModalSizeS0__Sb">==(_:_:)</a>
              </li>
              <li class="nav-group-task">
                <a href="Functions.html#/s:ZF8Presentroi2eeFTOS_19ModalCenterPositionS0__Sb">==(_:_:)</a>
              </li>
            </ul>
          </li>
          <li class="nav-group-name">
            <a href="Typealiases.html">Typealiases</a>
            <ul class="nav-group-tasks">
              <li class="nav-group-task">
                <a href="Typealiases.html#/s:8Presentr16FrameTransformer">FrameTransformer</a>
              </li>
            </ul>
          </li>
        </ul>
      </nav>
      <article class="main-content">
        <section>
          <section class="section">
            <h1>Enums</h1>
            <p>The following enums are available globally.</p>

          </section>
          <section class="section task-group-section">
            <div class="task-group">
              <ul>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:O8Presentr14TransitionType"></a>
                    <a name="//apple_ref/swift/Enum/TransitionType" class="dashAnchor"></a>
                    <a class="token" href="#/s:O8Presentr14TransitionType">TransitionType</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Describes the transition animation for presenting the view controller. Includes the default system transitions and custom ones.</p>

<ul>
<li>CoverVertical:            System provided transition style. UIModalTransitionStyle.CoverVertical</li>
<li>CrossDissolve:            System provided transition style. UIModalTransitionStyle.CrossDissolve</li>
<li>FlipHorizontal:           System provided transition style. UIModalTransitionStyle.FlipHorizontal</li>
<li>CoverVerticalFromTop:     Custom transition animation. Slides in vertically from top.</li>
<li>CoverHorizontalFromLeft:  Custom transition animation. Slides in horizontally from left.</li>
<li>CoverHorizontalFromRight: Custom transition animation. Slides in horizontally from  right.</li>
</ul>

                        <a href="Enums/TransitionType.html" class="slightly-smaller">See more</a>
                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight"><code><span class="kd">public</span> <span class="kd">enum</span> <span class="kt">TransitionType</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
              </ul>
            </div>
            <div class="task-group">
              <ul>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:O8Presentr19ModalCenterPosition"></a>
                    <a name="//apple_ref/swift/Enum/ModalCenterPosition" class="dashAnchor"></a>
                    <a class="token" href="#/s:O8Presentr19ModalCenterPosition">ModalCenterPosition</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Describes the presented presented view controller&rsquo;s center position. It is meant to be non-specific, but we can use the &lsquo;calculatePoint&rsquo; method when we want to calculate the exact point by passing in the &lsquo;containerBounds&rsquo; rect that only the presentation controller should be aware of.</p>

<ul>
<li>Center:       Center of the screen.</li>
<li>TopCenter:    Center of the top half of the screen.</li>
<li>BottomCenter: Center of the bottom half of the screen.</li>
<li>Custom: A custom center position using a CGPoint which represents the center point of the presented view controller.</li>
<li>Custom: A custom center position to be calculated, using a CGPoint which represents the origin of the presented view controller.</li>
</ul>

                        <a href="Enums/ModalCenterPosition.html" class="slightly-smaller">See more</a>
                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight"><code><span class="kd">public</span> <span class="kd">enum</span> <span class="kt">ModalCenterPosition</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
              </ul>
            </div>
            <div class="task-group">
              <ul>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:O8Presentr16AlertActionStyle"></a>
                    <a name="//apple_ref/swift/Enum/AlertActionStyle" class="dashAnchor"></a>
                    <a class="token" href="#/s:O8Presentr16AlertActionStyle">AlertActionStyle</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Describes the style for an action, that will be used to style a button in the alert controller.</p>

<ul>
<li>Default:     Green text label. Meant to draw attention to the action.</li>
<li>Cancel:      Gray text label. Meant to be neutral.</li>
<li>Destructive: Red text label. Meant to warn the user about the action.</li>
</ul>

                        <a href="Enums/AlertActionStyle.html" class="slightly-smaller">See more</a>
                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight"><code><span class="kd">public</span> <span class="kd">enum</span> <span class="kt">AlertActionStyle</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
              </ul>
            </div>
            <div class="task-group">
              <ul>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:O8Presentr9ModalSize"></a>
                    <a name="//apple_ref/swift/Enum/ModalSize" class="dashAnchor"></a>
                    <a class="token" href="#/s:O8Presentr9ModalSize">ModalSize</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Descibes a presented modal&rsquo;s size dimension (width or height). It is meant to be non-specific, but the exact position can be calculated by calling the &lsquo;calculate&rsquo; methods, passing in the &lsquo;parentSize&rsquo; which only the Presentation Controller should be aware of.</p>

<ul>
<li>Default: Default size. Will use Presentr&rsquo;s default margins to calculate size of presented controller. This is the size the .Popup presentation type uses.</li>
<li>Half:    Half of the screen.</li>
<li>Full:    Full screen.</li>
<li>Custom:  Custom fixed size.</li>
</ul>

                        <a href="Enums/ModalSize.html" class="slightly-smaller">See more</a>
                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight"><code><span class="kd">public</span> <span class="kd">enum</span> <span class="kt">ModalSize</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
              </ul>
            </div>
            <div class="task-group">
              <ul>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:O8Presentr16PresentationType"></a>
                    <a name="//apple_ref/swift/Enum/PresentationType" class="dashAnchor"></a>
                    <a class="token" href="#/s:O8Presentr16PresentationType">PresentationType</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Basic Presentr type. Its job is to describe the &lsquo;type&rsquo; of presentation. The type describes the size and position of the presented view controller.</p>

<ul>
<li>Alert:      This is a small 270 x 180 alert which is the same size as the default iOS alert.</li>
<li>Popup:      This is a average/default size &lsquo;popup&rsquo; modal.</li>
<li>TopHalf:    This takes up half of the screen, on the top side.</li>
<li>BottomHalf: This takes up half of the screen, on the bottom side.</li>
<li>Custom: Provide a custom width, height and center position.</li>
</ul>

                        <a href="Enums/PresentationType.html" class="slightly-smaller">See more</a>
                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight"><code><span class="kd">public</span> <span class="kd">enum</span> <span class="kt">PresentationType</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
              </ul>
            </div>
          </section>
        </section>
        <section id="footer">
          <p>&copy; 2016 <a class="link" href="http://github.com/icalialabs/Presentr" target="_blank" rel="external">Daniel Lozano</a>. All rights reserved. (Last updated: 2016-07-06)</p>
          <p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.6.0</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
        </section>
      </article>
    </div>
  </body>
</div>
</html>
